import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    shop: [],
    count: 0,
    num: [2, 1, 4, 5, 4, 3]
  },
  mutations: {
    add (state, v) {
      state.count += v
    },
    min (state, v) {
      state.count -= v
    }
  },
  actions: {
  },
  modules: {
  }
})
